//
//  ZDAnnotationView.m
//  BaiduMapDemo
//
//  Created by 刘甲奇 on 2017/6/18.
//  Copyright © 2017年 maker. All rights reserved.
//

#import "ZDAnnotationView.h"
@interface ZDAnnotationView()
@property (weak, nonatomic) IBOutlet UIImageView *icon;

@end
@implementation ZDAnnotationView
- (id)initWithAnnotation:(MAPointAnnotation *)annotation reuseIdentifier:(NSString *)reuseIndetifier
{
    ZDAnnotationView *annoticationView = (ZDAnnotationView *) [[NSBundle mainBundle] loadNibNamed:@"ZDAnnotationView" owner:nil options:nil].firstObject;

    return annoticationView;
}
- (void)setPoiString:(NSString *)poiString
{
    if ([poiString isEqualToString:@"银行"]) {
        self.icon.image = [UIImage imageNamed:@"m_yinhang"];
    }else if ([poiString isEqualToString:@"商场"])
    {
        self.icon.image = [UIImage imageNamed:@"m_shangchang"];
    }else if ([poiString isEqualToString:@"医院"])
    {
        self.icon.image = [UIImage imageNamed:@"m_yiyuan"];
    }else if ([poiString isEqualToString:@"药店"])
    {
        self.icon.image = [UIImage imageNamed:@"m_yaodian"];
    }
}

@end
